//
//  LXMineRequstOrderListModel.m
//  TuDianEducation
//
//  Created by lixinkeji on 2020/7/10.
//  Copyright © 2020 zhangbenchao. All rights reserved.
//

#import "LXMineRequstOrderListModel.h"

@implementation LXMineRequstOrderListModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
-(CGFloat)offHeight{
    
    CGFloat height = TSScaleW(150) + TSScaleW(96) *self.ordertailList.count;
    return height;
}
-(NSString *)orderMessageString{
    ///"state":""//订单状态 0待付款 1待发货 2待收货 3待评价 4 已完成 5退款中 6 已退款 7已取消
    NSString *status = @"未知状态";
    switch (_state.integerValue) {
        case 0:
        {
            status = @"待付款";
        }
            break;
        case 1:
        {
            status = @"待发货";
        }
            break;
        case 2:
        {
            status = @"待收货";
        }
            break;
            
        case 3:
        {
            status = @"待评价";
        }
            break;
        case 4:
        {
            status = @"已完成";
        }
            break;
        case 5:
        {
            status = @"退款中";
        }
            break;
        case 6:
        {
            status = @"已退款";
        }
            break;
        case 7:
        {
            status = @"已取消";
        }
            break;
        default:
            break;
    }
    
    return status;
}
@end
